package com.jiyinit.web.core.mobile.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.jiyinit.core.framework.base.paging.PagingResult;
import com.jiyinit.web.core.mobile.dao.TabCoreBlueWallDao;
import com.jiyinit.web.core.mobile.dto.BlueWallRequest;
import com.jiyinit.web.core.mobile.entity.TabCoreBlueWallEntity;

@Service("core.blueWallServiceImpl")
public class BlueWallServiceImpl {
	
	@Resource(name = "core.tabCoreBlueWallDao")
	private TabCoreBlueWallDao tabCoreBlueWallDao;


	/**
     * 多条件分页查询
     * @param request
     * @return
     */
	public PagingResult<TabCoreBlueWallEntity> findForPage(BlueWallRequest request){
        return tabCoreBlueWallDao.findForPage(request);
    }
	
	/**
	 * id查询
     * @param id
     * @return
     */
	public TabCoreBlueWallEntity findOne(Integer id){
		return tabCoreBlueWallDao.findOne(id);
	}
	
	/**
	 * 添加
     * @param entity
     * @return
     */
	public int add(TabCoreBlueWallEntity entity){
		return tabCoreBlueWallDao.add(entity);
	}
	
	/**
	 * 修改
     * @param entity
     * @return
     */
	public int update(TabCoreBlueWallEntity entity){
		return tabCoreBlueWallDao.update(entity);
	}
	
	/**
	 * 删除
     * @param id
     * @return
     */
	public int delete(Integer id){
		return tabCoreBlueWallDao.delete(id);
	}

	public PagingResult<TabCoreBlueWallEntity> list(BlueWallRequest request) {
		return tabCoreBlueWallDao.list(request);
	}
}
